package com.ljm.file.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Author: ChenHuaMing
 * @Date: 2020/9/28 11:08
 * @Description:
 */
@ConfigurationProperties(prefix = "ljm.oss")
public class LjmFileProperties {
    private Boolean enabled;
    private OssType type;
    private String endPoint;
    private String accessKeyId;
    private String accessKeySecret;
    private String securityToken;
    private String publicBucketName;
    private String secrecyBucketName;

    public Boolean getEnabled() {
        return enabled;
    }

    public void setEnabled(Boolean enabled) {
        this.enabled = enabled;
    }

    public OssType getType() {
        return type;
    }

    public void setType(OssType type) {
        this.type = type;
    }

    public String getEndPoint() {
        return endPoint;
    }

    public void setEndPoint(String endPoint) {
        this.endPoint = endPoint;
    }

    public String getAccessKeyId() {
        return accessKeyId;
    }

    public void setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
    }

    public String getAccessKeySecret() {
        return accessKeySecret;
    }

    public void setAccessKeySecret(String accessKeySecret) {
        this.accessKeySecret = accessKeySecret;
    }

    public String getSecurityToken() {
        return securityToken;
    }

    public void setSecurityToken(String securityToken) {
        this.securityToken = securityToken;
    }

    public String getPublicBucketName() {
        return publicBucketName;
    }

    public void setPublicBucketName(String publicBucketName) {
        this.publicBucketName = publicBucketName;
    }

    public String getSecrecyBucketName() {
        return secrecyBucketName;
    }

    public void setSecrecyBucketName(String secrecyBucketName) {
        this.secrecyBucketName = secrecyBucketName;
    }

    public enum OssType{
        /**
         * 阿里巴巴对象存储
         */
        alibaba_oss,
        /**
         * 七牛对象存储
         */
        qiuniu_oss;
    }
}
